#ifndef __DIALOG_LAYER_H__
#define __DIALOG_LAYER_H__
#include "cocos2d.h"

namespace gofgame {
	namespace jumpdown {
		namespace layer {
			class DialogLayer : public cocos2d::CCLayerColor{
			public:
				DialogLayer();
				~DialogLayer();
			public:
				virtual bool init();
				static DialogLayer *createDialogLayer();
				void onEnter();
				void onExit();

				virtual bool ccTouchBegan(cocos2d::CCTouch *pTouch, cocos2d::CCEvent *pEvent);  
				virtual void ccTouchMoved(cocos2d::CCTouch *pTouch, cocos2d::CCEvent *pEvent);  
				virtual void ccTouchEnded(cocos2d::CCTouch *pTouch, cocos2d::CCEvent *pEvent);  
				virtual void ccTouchCancelled(cocos2d::CCTouch *pTouch, cocos2d::CCEvent *pEvent);  

				void resumeMenuItemCallback(cocos2d::CCObject *pSender);  
				void exitMenuItemCallback(cocos2d::CCObject *pSender);  
			private:
				cocos2d::CCMenu *m_pMenu;
				bool m_bTouchedMenu;
			};
		}
	}
}

#endif //__DIALOG_LAYER_H__
